package cn.edu.zut.hkxy.mapper;

import cn.edu.zut.hkxy.pojo.Docs;
import cn.edu.zut.hkxy.pojo.DocsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface DocsMapper {
    long countByExample(DocsExample example);

    int deleteByExample(DocsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Docs record);

    int insertSelective(Docs record);

    List<Docs> selectByExample(DocsExample example);

    Docs selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Docs record, @Param("example") DocsExample example);

    int updateByExample(@Param("record") Docs record, @Param("example") DocsExample example);

    int updateByPrimaryKeySelective(Docs record);

    int updateByPrimaryKey(Docs record);

    //自定义方法
    int insertBatch(@Param("docsList")List<Docs> docsList);
}